﻿using SqlSugar;

namespace HY.Model
{
    [SugarTable("sys_log")]
    public class SysLog : BaseModel
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        [SugarColumn(ColumnName = "user_id")]
        public int? UserId { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        [SugarColumn(ColumnName = "user_name", ColumnDataType = "nvarchar(20)")]
        public string UserName { get; set; }
        /// <summary>
        /// 操作表名
        /// </summary>
        [SugarColumn(ColumnName = "table_name", ColumnDataType = "varchar(50)")]
        public string TableName { get; set; }
        /// <summary>
        /// 操作类型 新增、删除、修改、登录、关闭、开启、修改密码、重置密码
        /// </summary>
        [SugarColumn(ColumnName = "ope_type", ColumnDataType = "nvarchar(20)")]
        public string OpeType { get; set; }
        /// <summary>
        /// 操作详情
        /// </summary>
        [SugarColumn(ColumnName = "ope_detail", ColumnDataType = "nvarchar(4000)")]
        public string OpeDetail { get; set; }
        /// <summary>
        /// 操作结果
        /// </summary>
        [SugarColumn(ColumnName = "ope_result", ColumnDataType = "nvarchar(20)")]
        public string OpeResult { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnName = "remark", ColumnDataType = "nvarchar(4000)")]
        public string Remark { get; set; }
    }
}
